home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
428_02
/
examples
/
wpane.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-13
|
582b
|
31 lines
/*
** WPANE.C: Divides a window into many panes.
*/
#include <pictor.h>
void main()
{
int i,handle1,handle2;
/* initialize library */
initvideo();
wopen(5,6,17,70,foreback(BOLD+CYAN,BLUE),0x00);
handle1 = 0;
handle2 = wpane(WP_VERTICAL,35);
for(i = 0;i < 8;i++) {
setwpane(handle1);
xprintf(wputs,"Pane handle: %d",handle1);
handle1 = wpane(WP_HORIZONTAL,3);
setwpane(handle2);
xprintf(wputs,"Pane handle: %d",handle2);
handle2 = wpane(WP_HORIZONTAL,3);
}
kbdread();
wclose();
}